Use CRPEJob::GetNTables to determine the number of tables used in the report.
short GetNTables ();
Returns the number of tables in the report.